powerpc/lib/Makefile: Don't pull in quad.o for 32-bit kernels
authorJames Clarke <jrtc27@jrtc27.com>
Sun, 18 Feb 2018 15:54:44 +0000 (15:54 +0000)
committerSalvatore Bonaccorso <carnil@debian.org>
Sat, 18 Aug 2018 12:02:58 +0000 (13:02 +0100)
The functions exported by quad.o are only used when guarded by
__powerpc64__ and so are unused on 32-bit kernels. Moreover, their
implementations make use of instructions which will cause an illegal
instruction error on 32-bit processors, and are not accepted by the
assembler for SPE processors.

Fixes: 31bfdb036f12 ("powerpc: Use instruction emulation infrastructure to handle alignment faults")
Signed-off-by: James Clarke <jrtc27@jrtc27.com>
Gbp-Pq: Topic bugfix/powerpc
Gbp-Pq: Name powerpc-lib-makefile-don-t-pull-in-quad.o-for-32-bit.patch

arch/powerpc/lib/Makefile

index 653901042ad7d094c18495f3e71d6c2aacf84e0a..e0324f25bdf1cee40896c230dfd9f6feb48501ce 100644 (file)
@@ -34,7 +34,7 @@ obj64-$(CONFIG_KPROBES_SANITY_TEST) += test_emulate_step.o
 
 obj-y                  += checksum_$(BITS).o checksum_wrappers.o
 
-obj-y                  += sstep.o ldstfp.o quad.o
+obj-y                  += sstep.o ldstfp.o
 obj64-y                        += quad.o
 
 obj-$(CONFIG_PPC_LIB_RHEAP) += rheap.o